import java.io.FilterOutputStream;
import java.util.Scanner;

public class Tset1 {
    public static void main(String[] args) {
        //回文数字
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        s=s.toLowerCase();//变成小写
        int left = 0;
        int right = s.length()-1;
        while(left<right) {
            while(isUpperCase(s.charAt(left)) && left<right) {
                left++;
            }
            while(isUpperCase(s.charAt(right))&&left<right) {
                right--;
            }
            if(s.charAt(left)==s.charAt(right)) {
                left++;
                right--;
            }else {
                System.out.println("false");
                break;
            }
        }
        System.out.println("true");


    }
        public static boolean isUpperCase(char ch) {
           //用来判断是否是字母数字
            if(ch >= 'a' && ch <= 'z' || ch >= '0' && ch <= '9') {
                return false;//字母数字
            }
            return true;
        }



    public static void main5(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        //从后面遍历，记录空格的位置
        int index = str.lastIndexOf(" ");

        //算空格后面的长度
        System.out.println(str.substring(index+1).length());

    }
    public static void main4(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        String[] tmp = str.split(" ");
        System.out.println(tmp[tmp.length-1].length());
    }
    public static void main3(String[] args) {
        String s = new String("leetcode");
        int[] count = new int[26];
        for(int i=0;i<s.length();i++) {
            char ch = s.charAt(i);
            count[ch-'a']++;
        }

        for(int i=0;i<s.length();i++) {
            if(count[s.charAt(i)-'a']==1) {
                System.out.println(i);
                break;
            }
        }







    }
    public static void main2(String[] args) {
       String str = new String("abcd");
       StringBuilder stringBuilder = new StringBuilder();
       stringBuilder.append(str);
        System.out.println(stringBuilder);
    }
    public static void main1(String[] args) {
        String s = "";
        String[] tmp = s.split(" ");
        int count = 0;
        for (int i = 0; i < tmp.length; i++) {
            if(tmp[i]=="") {
                continue;
            }
            count++;
        }
        System.out.println(count);
    }
}
